<?PHP
ob_start();
include("common/connection.php");
$uid=$_POST['uid'];
$status=$_POST['status'];
$origin=$_POST['origin'];
$mail=$_POST['mail'];

if($uid!='')
{	
$addUser="UPDATE `users` SET `status`='$status' WHERE `id`=$uid AND `verify`='$origin'";
$resultUser=mysql_db_query($db_name,$addUser);


$content="<table width='100%' border='0' cellpadding='0' cellspacing='0'>
  <tr>
    <td>
   
    <table width='100%' border='0' align='center' cellpadding='0' cellspacing='0'>
      <tr bgcolor='#003366'>
        <td><table width='100%' border='0' cellpadding='0' cellspacing='0'>
          <tr>
            <td align='center'><h1><font style='font-family:Verdana, Arial, Helvetica, sans-serif;
color:#FFFFFF;'>IBA REUNION 2009</font></h1></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><table width='100%' border='0' bgcolor='#000000' cellpadding='1' cellspacing='1'>
  <tr>
    <td bgcolor='#ffffff'><table width='100%' border='0' cellpadding='0' cellspacing='0'>
          <tr height='30'>
            <td width='20%' align='center' class='datetime'>Date</td>
            <td width='60%' align='center' bgcolor='#99CCCC' class='datetime'>Bangladesh China Friendship Conference Center</td>
            <td width='20%' align='center' class='datetime'>Time</td>
          </tr>
          <tr height='30'>
            <td align='center' bgcolor='#99CCCC' class='datetime'>19 Jun 2009</td>
            <td align='center' class='datetime'>Venue</td>
            <td align='center' bgcolor='#99CCCC' class='datetime'>2pm - 11pm</td>
          </tr>
        </table></td>
  </tr>
</table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>      
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><table width='100%' border='0' bgcolor='#000000' cellpadding='1' cellspacing='1'>
          <tr>
            <td bgcolor='#ffffff'><table width='100%' border='0' cellpadding='0' cellspacing='0'>
              <tr>
                <td align='center' style='font-family:Arial, Helvetica, sans-serif;
color:#3399CC;
font-size:24px;
font-weight:normal'><br>Your Registration Fee for IBA REUNION 2009 is recieved.</td>

<tr>

                <td align='center' style='font-family:Arial, Helvetica, sans-serif;
color:#000000;
font-size:18px;
font-weight:normal'>
<br><br><b>
PLEASE BRING THE MONEY RECEIPT TO COLLECT BADGE AT THE VENUE</b><br>
[Your Money Receipt will be collected at the badge counter for raffle draw]
<br><br></td>

                <td align='left' style='font-family:Arial, Helvetica, sans-serif;
color:#000000;
font-size:14px;
font-weight:normal'>
<br><br>
Program Schedule<br>
&nbsp;&nbsp;2:00 PM - Badge Collection<br>
&nbsp;&nbsp;3:30 PM - Welcome with Dhool<br>
&nbsp;&nbsp;3:40 PM - Inauguration Speech<br>
&nbsp;&nbsp;4:10 PM - Presentation on Alumni's we have lost over time<br>
&nbsp;&nbsp;4:20 PM - On Stage Program<br>
&nbsp;&nbsp;5:00 PM - IBAAA Installation Ceremony<br>
&nbsp;&nbsp;5:30 PM - Award Giving<br>
&nbsp;&nbsp;6:00 PM - BREAK (Snacks & Mingling)<br>
&nbsp;&nbsp;7:00 PM - Raffle Draw 1<br>
&nbsp;&nbsp;7:15 PM - Presentation on Remembering IBA<br>
&nbsp;&nbsp;7:25 PM - Skit/Movie<br>
&nbsp;&nbsp;7:40 PM - Musical Performance<br>
&nbsp;&nbsp;8:30 PM - Vote of Thanks<br>
&nbsp;&nbsp;8:40 PM - DINNER<br>
&nbsp;&nbsp;9:40 PM - Raffle Draw 2<br>
&nbsp;&nbsp;9:55 PM - Band Music Performance<br>
&nbsp;&nbsp;11:25 PM - Closing<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;.&nbsp;&nbsp;.&nbsp;&nbsp;.&nbsp;<b>See you at REUNION.</b>

</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              
              
              <tr>
                <td align='center'>&nbsp;</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>    
    </td>
  </tr>
</table>";
//echo $content;

$subject="IBA REUNION 2009 PAYMENT CONFIRMATION.";
$headers ="MIME-Version: 1.0\n";
$headers .= "From: pay-confirm@iba-reunion.net\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$email=$_POST['email'];
	if($resultUser)
		{		
		mail("$mail","$subject","$content",$headers);
		header("Location: containeradmin.php?area=user&action=report&origin=$origin&mess=1");
		}
}
else
{
	header("Location: containeradmin.php?area=user&action=report&origin=$origin&mess=2");
}
?>

